<?php 
	if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_SERVER['REQUEST_URI'] == '/daimtour/'){
		echo '<div id="prefooter">';
	} else {
		echo '<div id="prefooter_var">';
	}
?>
    <div id="prefooter_child">
    <?php 
    if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_SERVER['REQUEST_URI'] == '/daimtour/'){
        echo '<a class="downmenu_on" href="index.html">Home</a>';
        echo '<a class="downmenu" href="sitemap.html">Sitemap</a>';
        echo '<a class="downmenu" href="pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="contact.html">Contact</a>';
    }
    elseif ($_GET['pg'] == 'news' || $_GET['pg'] == 'top'){
        echo '<a class="downmenu" href="../../index.html">Home</a>';
        echo '<a class="downmenu" href="../../sitemap.html">Site Map</a>';
        echo '<a class="downmenu" href="../../pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="../../pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="../../pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="../../contact.html">Contact</a>';
    }
    elseif ($_GET['pg'] == 'offers'){
        echo '<a class="downmenu" href="../../../index.html">Home</a>';
        echo '<a class="downmenu" href="../../../sitemap.html">Site Map</a>';
        echo '<a class="downmenu" href="../../../pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="../../../pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="../../../pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="../../../contact.html">Contact</a>';
    }
    elseif ($_GET['pg'] == 'pages'){
        echo '<a class="downmenu" href="../../index.html">Home</a>';
        echo '<a class="downmenu" href="../../sitemap.html">Site Map</a>';
        if($_GET['id'] == '5')
                echo '<a class="downmenu_on" href="../../pages/5/utile.html">Utile</a>';
        else 
                echo '<a class="downmenu" href="../../pages/5/utile.html">Utile</a>';
        if($_GET['id'] == '6')
                echo '<a class="downmenu_on" href="../../pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        else
                echo '<a class="downmenu" href="../../pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        if($_GET['id'] == '7')
                echo '<a class="downmenu_on" href="../../pages/7/formulare_contracte.html">Formulare contracte</a>';
        else 
                echo '<a class="downmenu" href="../../pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="../../contact.html">Contact</a>';
    }
    elseif ($_GET['pg'] == 'sitemap'){
        echo '<a class="downmenu" href="index.html">Home</a>';
        echo '<a class="downmenu_on" href="sitemap.html">Site Map</a>';
        echo '<a class="downmenu" href="pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="contact.html">Contact</a>';
    }	
    elseif ($_GET['pg'] == 'contact'){
        echo '<a class="downmenu" href="index.html">Home</a>';
        echo '<a class="downmenu" href="sitemap.html">Sitemap</a>';
        echo '<a class="downmenu" href="pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu_on" href="contact.html">Contact</a>';
    }
    elseif ($_GET['pg'] == 'search'){
        echo '<a class="downmenu" href="index.html">Home</a>';
        echo '<a class="downmenu" href="sitemap.html">Sitemap</a>';
        echo '<a class="downmenu" href="pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="contact.html">Contact</a>';
    }

    if ($_GET['pg'] == 'categories'){
        echo '<a class="downmenu" href="../../index.html">Home</a>';
        echo '<a class="downmenu" href="../../sitemap.html">Sitemap</a>';
        echo '<a class="downmenu" href="../../pages/5/utile.html">Utile</a>';
        echo '<a class="downmenu" href="../../pages/6/termeni_si_conditii.html">Termeni si conditii</a>';
        echo '<a class="downmenu" href="../../pages/7/formulare_contracte.html">Formulare contracte</a>';
        echo '<a class="downmenu" href="../../contact.html">Contact</a>';
    }
    ?>
    <?php 
        $settings = $dbClass->slc_db_all("dt_settings");
        $settRow = mysql_fetch_array($settings);

        echo '&nbsp;' . $settRow['s_tel_no'];
    ?>
    </div>
</div>
<!-- end prefooter //////////////////////////////////////// -->
<!-- footer /////////////////////////////////////////////// -->
<?php
$sQuery = mysql_query("select * from dt_settings");
$sRow = mysql_fetch_array($sQuery);
?>
<?php 
    if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_SERVER['REQUEST_URI'] == '/daimtour/'){
            echo '<div id="footer">';
    } else {
            echo '<div id="footer_var">';
    }
?>
    <table id="tabel_footer" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
        <?php if($_GET['pg'] == 'categories'){?>
            <td id="tabel1"><a href="<?php echo $sRow['iata_link']?>"><img src="../../templates/default/images/iata.png" width="80" height="50"></a></td>
            <td id="tabel2">
                    <?php echo $sRow['iata_text']?>
            </td>
            <td id="tabel3">
                <!--/Start async trafic.ro/-->
                <script type="text/javascript" id="trfc_trafic_script">
                //<![CDATA[
                t_rid = '<?php echo $sRow['trafic_plugin']?>';
                (function(){ t_js_dw_time=new Date().getTime();
                t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid;
                if (document.createElement && document.getElementsByTagName && document.insertBefore) {
                t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src;
                var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else {
                document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); }})();
                //]]>
                </script>
                <noscript><p><a href="http://stat.trafic.ro/stat/<?php echo $sRow['trafic_plugin']?>"><img alt="<?php echo $sRow['trafic_plugin']?>" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=<?php echo $sRow['trafic_plugin']?>" /></a> <a href="http://www.trafic.ro">trafic.ro</a></p></noscript>
                <!--/End async trafic.ro/-->
            </td>
            <td id="tabel4"><a href="../../uploads/pdf_files/oferte_speciale.pdf"><img src="../../templates/default/images/dwnld-oferte.png" width="135" height="45"></a></td>
            <td id="tabel5"><a href="../../uploads/pdf_files/brosura_prezentare.pdf"><img src="../../templates/default/images/dwnld-brosura.png" width="135" height="45"></a></td>
        <?php } elseif ($_GET['pg'] == 'news' || $_GET['pg'] == 'top'){?>
            <td id="tabel1"><a href="<?php echo $sRow['iata_link']?>"><img src="../../templates/default/images/iata.png" width="80" height="50"></a></td>
            <td id="tabel2">
                    <?php echo $sRow['iata_text']?>
            </td>
            <td id="tabel3">
                <!--/Start async trafic.ro/-->
                <script type="text/javascript" id="trfc_trafic_script">
                //<![CDATA[
                t_rid = '<?php echo $sRow['trafic_plugin']?>';
                (function(){ t_js_dw_time=new Date().getTime();
                t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid;
                if (document.createElement && document.getElementsByTagName && document.insertBefore) {
                t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src;
                var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else {
                document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); }})();
                //]]>
                </script>
                <noscript><p><a href="http://stat.trafic.ro/stat/<?php echo $sRow['trafic_plugin']?>"><img alt="<?php echo $sRow['trafic_plugin']?>" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=<?php echo $sRow['trafic_plugin']?>" /></a> <a href="http://www.trafic.ro">trafic.ro</a></p></noscript>
                <!--/End async trafic.ro/-->
            </td>
            <td id="tabel4"><a href="../../uploads/pdf_files/oferte_speciale.pdf"><img src="../../templates/default/images/dwnld-oferte.png" width="135" height="45"></a></td>
            <td id="tabel5"><a href="../../uploads/pdf_files/brosura_prezentare.pdf"><img src="../../templates/default/images/dwnld-brosura.png" width="135" height="45"></a></td>					
        <?php } elseif ($_GET['pg'] == 'offers'){?>
            <td id="tabel1"><a href="<?php echo $sRow['iata_link']?>"><img src="../../../templates/default/images/iata.png" width="80" height="50"></a></td>
            <td id="tabel2">
                    <?php echo $sRow['iata_text']?>
            </td>
            <td id="tabel3">
                <!--/Start async trafic.ro/-->
                <script type="text/javascript" id="trfc_trafic_script">
                //<![CDATA[
                t_rid = '<?php echo $sRow['trafic_plugin']?>';
                (function(){ t_js_dw_time=new Date().getTime();
                t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid;
                if (document.createElement && document.getElementsByTagName && document.insertBefore) {
                t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src;
                var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else {
                document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); }})();
                //]]>
                </script>
                <noscript><p><a href="http://stat.trafic.ro/stat/<?php echo $sRow['trafic_plugin']?>"><img alt="<?php echo $sRow['trafic_plugin']?>" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=<?php echo $sRow['trafic_plugin']?>" /></a> <a href="http://www.trafic.ro">trafic.ro</a></p></noscript>
                <!--/End async trafic.ro/-->
            </td>
            <td id="tabel4"><a href="../../../uploads/pdf_files/oferte_speciale.pdf"><img src="../../../templates/default/images/dwnld-oferte.png" width="135" height="45"></a></td>
            <td id="tabel5"><a href="../../../uploads/pdf_files/brosura_prezentare.pdf"><img src="../../../templates/default/images/dwnld-brosura.png" width="135" height="45"></a></td>
        <?php } elseif ($_GET['pg'] == 'pages'){?>
            <td id="tabel1"><a href="<?php echo $sRow['iata_link']?>"><img src="../../templates/default/images/iata.png" width="80" height="50"></a></td>
            <td id="tabel2">
                    <?php echo $sRow['iata_text']?>
            </td>
            <td id="tabel3">
                <!--/Start async trafic.ro/-->
                <script type="text/javascript" id="trfc_trafic_script">
                //<![CDATA[
                t_rid = '<?php echo $sRow['trafic_plugin']?>';
                (function(){ t_js_dw_time=new Date().getTime();
                t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid;
                if (document.createElement && document.getElementsByTagName && document.insertBefore) {
                t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src;
                var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else {
                document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); }})();
                //]]>
                </script>
                <noscript><p><a href="http://stat.trafic.ro/stat/<?php echo $sRow['trafic_plugin']?>"><img alt="<?php echo $sRow['trafic_plugin']?>" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=<?php echo $sRow['trafic_plugin']?>" /></a> <a href="http://www.trafic.ro">trafic.ro</a></p></noscript>
                <!--/End async trafic.ro/-->
            </td>
            <td id="tabel4"><a href="../../uploads/pdf_files/oferte_speciale.pdf"><img src="../../templates/default/images/dwnld-oferte.png" width="135" height="45"></a></td>
            <td id="tabel5"><a href="../../uploads/pdf_files/brosura_prezentare.pdf"><img src="../../templates/default/images/dwnld-brosura.png" width="135" height="45"></a></td>
        <?php } else {?>
            <td id="tabel1"><a href="<?php echo $sRow['iata_link']?>"><img src="templates/default/images/iata.png" width="80" height="50"></a></td>
            <td id="tabel2">
                    <?php echo $sRow['iata_text']?>
            </td>
            <td id="tabel3">
                <!--/Start async trafic.ro/-->
                <script type="text/javascript" id="trfc_trafic_script">
                //<![CDATA[
                t_rid = '<?php echo $sRow['trafic_plugin']?>';
                (function(){ t_js_dw_time=new Date().getTime();
                t_js_load_src=((document.location.protocol == 'http:')?'http://storage.':'https://secure.')+'trafic.ro/js/trafic.js?tk='+(Math.pow(10,16)*Math.random())+'&t_rid='+t_rid;
                if (document.createElement && document.getElementsByTagName && document.insertBefore) {
                t_as_js_en=true;var sn = document.createElement('script');sn.type = 'text/javascript';sn.async = true; sn.src = t_js_load_src;
                var psn = document.getElementsByTagName('script')[0];psn.parentNode.insertBefore(sn, psn); } else {
                document.write(unescape('%3Cscri' + 'pt type="text/javascript" '+'src="'+t_js_load_src+';"%3E%3C/sc' + 'ript%3E')); }})();
                //]]>
                </script>
                <noscript><p><a href="http://stat.trafic.ro/stat/<?php echo $sRow['trafic_plugin']?>"><img alt="<?php echo $sRow['trafic_plugin']?>" src="http://log.trafic.ro/cgi-bin/pl.dll?rid=<?php echo $sRow['trafic_plugin']?>" /></a> <a href="http://www.trafic.ro">trafic.ro</a></p></noscript>
                <!--/End async trafic.ro/-->
            </td>
            <td id="tabel4"><a href="uploads/pdf_files/oferte_speciale.pdf"><img src="templates/default/images/dwnld-oferte.png" width="135" height="45"></a></td>
            <td id="tabel5"><a href="uploads/pdf_files/brosura_prezentare.pdf"><img src="templates/default/images/dwnld-brosura.png" width="135" height="45"></a></td>
        <?php }?>
        </tr>
    </table>
    </div>
<!-- end footer /////////////////////////////////////////// -->
</div>
</body>
</html>